package edu.neu.ecommerceplatform.dto;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;

public class CreateDeliverRequest {

    @NotNull(message = "地址ID不能为空")
    private Integer addressId;

    @NotBlank(message = "当前地址不能为空")
    @Size(max = 255, message = "当前地址长度不能超过255字符")
    private String currentAddress;

    @NotBlank(message = "配送员电话不能为空")
    @Size(max = 255, message = "配送员电话长度不能超过255字符")
    private String delivererPhone;

    @NotNull(message = "订单ID不能为空")
    private Integer orderId;

    public Integer getAddressId() {
        return addressId;
    }

    public void setAddressId(Integer addressId) {
        this.addressId = addressId;
    }

    public String getCurrentAddress() {
        return currentAddress;
    }

    public void setCurrentAddress(String currentAddress) {
        this.currentAddress = currentAddress;
    }

    public String getDelivererPhone() {
        return delivererPhone;
    }

    public void setDelivererPhone(String delivererPhone) {
        this.delivererPhone = delivererPhone;
    }

    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }
} 